/**
 * @author roua_troua
 * 
 * Clasa Ctg se refera la functia cotangenta de x
 * Derivata functiei este -1 / sin^2 x
 */
package q10.Functii.FunctiiTrigonometrice;

import q10.Functii.Functie;

public class Ctg extends Functie {
	
	/**
	 *@param aux1
	 *@return String 
	 */
	public String concatTermeni(String aux1){
		String aux;
		int nrP;
		
		nrP = aux1.charAt(0) == '(' ? 0 : 2;
		aux = "ctg";
		
		if(nrP != 0) aux += "(";
		
		aux += aux1;
		
		if(nrP != 0) aux +=")";
		
		return aux;
	}
	
	/**
	 * Metoda concatTermeni(String aux1) concateneaza termenii functiei pentru a putea fi afisati
	 * 
	 * @param String -valoarea primita
	 * @return String - valoarea returnata
	 */
	public static String concatTermens(String aux1)
    {
        String aux;
        int nrP;

        nrP = aux1.charAt(0) == '(' ? 0 : 2;

        aux = "tg";
        if (nrP != 0) aux += "(";
        aux += aux1;
        if (nrP != 0) aux += ")";

        return aux;
    }
}
